﻿namespace Smart.Utils.System2
{
    using System;

    public class MyTV
    {
        private string[,] _Vn = new string[14, 0x12];

        public MyTV()
        {
            string str = "aAeEoOuUiIdDyY";
            string str2 = "\x00e1\x00e0ạả\x00e3\x00e2ấầậẩẫăắằặẳẵ";
            string str3 = "\x00c1\x00c0ẠẢ\x00c3\x00c2ẤẦẬẨẪĂẮẰẶẲẴ";
            string str4 = "\x00e9\x00e8ẹẻẽ\x00eaếềệểễeeeeee";
            string str5 = "\x00c9\x00c8ẸẺẼ\x00caẾỀỆỂỄEEEEEE";
            string str6 = "\x00f3\x00f2ọỏ\x00f5\x00f4ốồộổỗơớờợởỡ";
            string str7 = "\x00d3\x00d2ỌỎ\x00d5\x00d4ỐỒỘỔỖƠỚỜỢỞỠ";
            string str8 = "\x00fa\x00f9ụủũưứừựửữuuuuuu";
            string str9 = "\x00da\x00d9ỤỦŨƯỨỪỰỬỮUUUUUU";
            string str10 = "\x00ed\x00ecịỉĩiiiiiiiiiiii";
            string str11 = "\x00cd\x00ccỊỈĨIIIIIIIIIIII";
            string str12 = "đdddddddddddddddd";
            string str13 = "ĐDDDDDDDDDDDDDDDD";
            string str14 = "\x00fdỳỵỷỹyyyyyyyyyyyy";
            string str15 = "\x00ddỲỴỶỸYYYYYYYYYYYY";
            int startIndex = 0;
            while (startIndex <= 13)
            {
                this._Vn[startIndex, 0] = str.Substring(startIndex, 1);
                startIndex++;
            }
            for (int i = 1; i <= 0x11; i++)
            {
                for (startIndex = 1; startIndex <= 0x11; startIndex++)
                {
                    this._Vn[0, startIndex] = str2.Substring(startIndex - 1, 1);
                    this._Vn[1, startIndex] = str3.Substring(startIndex - 1, 1);
                    this._Vn[2, startIndex] = str4.Substring(startIndex - 1, 1);
                    this._Vn[3, startIndex] = str5.Substring(startIndex - 1, 1);
                    this._Vn[4, startIndex] = str6.Substring(startIndex - 1, 1);
                    this._Vn[5, startIndex] = str7.Substring(startIndex - 1, 1);
                    this._Vn[6, startIndex] = str8.Substring(startIndex - 1, 1);
                    this._Vn[7, startIndex] = str9.Substring(startIndex - 1, 1);
                    this._Vn[8, startIndex] = str10.Substring(startIndex - 1, 1);
                    this._Vn[9, startIndex] = str11.Substring(startIndex - 1, 1);
                    this._Vn[10, startIndex] = str12.Substring(startIndex - 1, 1);
                    this._Vn[11, startIndex] = str13.Substring(startIndex - 1, 1);
                    this._Vn[12, startIndex] = str14.Substring(startIndex - 1, 1);
                    this._Vn[13, startIndex] = str15.Substring(startIndex - 1, 1);
                }
            }
        }

        public string Remove(string Text)
        {
            string str = "";
            str = Text;
            for (int i = 0; i <= 13; i++)
            {
                for (int j = 1; j <= 0x11; j++)
                {
                    str = str.Replace(this._Vn[i, j], this._Vn[i, 0]);
                }
            }
            return str;
        }
    }
}

